﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="releaseList.aspx.vb" Inherits="gojira.releaseList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>
        Home video releases of the films are listed here.
</p>
    <p>
        Members with a King ghidorah rank can add their own.<br />
        <p>
    <asp:PlaceHolder ID="PlaceHolder1" runat="server">
    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="addFilm.aspx">Add a release</asp:HyperLink>
    </asp:PlaceHolder>
</p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource1" AllowSorting="True" Width="100%">
        <Columns>
            <asp:BoundField DataField="filmName" HeaderText="Film" 
                SortExpression="filmName" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Format" HeaderText="Format" 
                SortExpression="Format" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Region" HeaderText="Region" 
                SortExpression="Region" ItemStyle-HorizontalAlign="Center" />
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="releaseDetail.aspx?ID={0}" HeaderText="Detail" 
                Text="Detail" ItemStyle-HorizontalAlign="Center" />
            <asp:TemplateField HeaderText="Cover" ItemStyle-HorizontalAlign="Center">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" Text='<%# Eval("FrontCover") %>'></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:HyperLink runat="server" NavigateUrl='<%# "releaseDetail.aspx?ID=" + Eval("ID").toString() %>' ItemStyle-HorizontalAlign="Center">
                        <asp:Image ID="Image1" runat="server" Height="200px" Width="150px" ImageUrl='<%# Eval("FrontCover") %>' />
                    </asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:godzillaFilms %>" 
        ProviderName="<%$ ConnectionStrings:godzillaFilms.ProviderName %>" 
        
            
            SelectCommand="SELECT [filmName], [Format], [Region], [ID], [FrontCover] FROM [godzillaFilmsQuery] ORDER BY [FilmID]">
    </asp:SqlDataSource>
</p>

    <p>
    <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/releaseRSS.aspx">
    <asp:image runat="server" imageurl="Posters/rss_symbol.jpeg" Height="34px" 
            Width="34px" />
            </asp:HyperLink>
        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/releaseRSS.aspx">  RSS Feed</asp:HyperLink>
</p>


</asp:Content>
